import 'package:flutter/material.dart';
import '../../YColors.dart';

class ItemOrderView extends StatefulWidget {
  ItemOrderView({Key key}) : super(key: key);

  _ItemOrderViewState createState() => _ItemOrderViewState();
}

class _ItemOrderViewState extends State<ItemOrderView> {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      width: double.infinity,
      height: 180.0,
      color: Colors.white24,
//      child: Container(
        child: Card(
          margin: EdgeInsets.fromLTRB(15, 0, 15, 20),
          shadowColor: Colors.black38,
          elevation: 8.0, // 设置标题阴影
          child: Container(
            margin: EdgeInsets.fromLTRB(20,20,15,20),
            child: Column(
              children: <Widget>[
//                Padding(padding: EdgeInsets.fromLTRB(20,5,10,0)),
                Row(
                  children: <Widget>[
                    Text(
                      "安装调试服务",
                      style: TextStyle(
                        fontSize: 16.0,
                        color: YColors.a,
                      ),
                    ),
                    SizedBox(
                      width: 2,
                    ),
                    Text(
                      "自营",
                      style: TextStyle(
                        fontSize: 11.0,
                        color: Colors.white,
                        backgroundColor: YColors.m,
                      ),
                    )
                  ],
                ),
                SizedBox(height: 10),
                Text(
                  "服务要求：安装调试服务器，分析问题，并解决故障，如需要更换备件",
                  style: TextStyle(
                    fontSize: 12.0,
                    color: YColors.c,
                  ),
                  maxLines: 1,
                ),
                SizedBox(height: 10),
                Container(
                  alignment: Alignment.topLeft,
                  child: Text(
                    "¥100",
                    style: TextStyle(
                      fontSize: 14.0,
                      color: YColors.h,
                    ),
                  ),
                ),
                SizedBox(height: 10),
                Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: <Widget>[
                    Text(
                      "北京 2021.2.3",
                      style: TextStyle(
                        fontSize: 14.0,
                        color: YColors.a,
                      ),
                    ),

                    Container(
                      margin: EdgeInsets.fromLTRB(0, 0, 50, 0),
                      child:  Row(
                        children: <Widget>[

                          Container(

                         ),

                          Text(
                            "已报名",
                            style: TextStyle(
                              fontSize: 13.0,
                              color: YColors.c,
                            ),
                          ),
                        ],

                      ),
                    ),


                  ],
                )
              ],
            ),
          ),
          
          
          
        ),
//      ),
    );
  }
}
